package gl.android.xmppandroidclient.common;

/**
 * XMPP 连接状态
 * 
 */
public enum XmppState {
	OFFLINE, ONLINE, CONNECTING, KICKOUT;
	@Override
	public String toString() {
		String s = "未知";
		switch (this) {
		case OFFLINE:
			s = "离线";
			break;
		case ONLINE:
			s = "在线";
			break;
		case CONNECTING:
			s = "连接中";
			break;
		case KICKOUT:
			s = "账号在其它地方登陆";
			break;

		default:
			break;
		}
		return s;
	}
}
